<div class="col-sm-12 mt20">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="form-group ">
				<div class="col-sm-12">

					<div class="row">
						<div class="col-sm-2">
							<input type="text" class="form-control" placeholder="产品名称" ng-model="searchform.name" ng-keyup="myKeyup($event)">
						</div>
						<div class="col-sm-2">
							<input type="text" class="form-control" placeholder="产品编号" ng-model="searchform.code" ng-keyup="myKeyup($event)">
						</div>
						<div class="col-sm-2">
							<ui-select ng-model="searchform.place_code" theme="bootstrap" ng-keyup="myKeyup($event)">
								<ui-select-match placeholder="请选择一个酒店">
									{{$select.selected.name}}
								</ui-select-match>
								<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
									<span ng-bind-html="item.name | highlight: $select.search"></span>
								</ui-select-choices>
							</ui-select>
						</div>
						<!-- <div class="col-sm-2 ">
							<ui-select ng-model="searchform.sale_category" theme="bootstrap" ng-keyup="myKeyup($event)">
								<ui-select-match placeholder="产品分类">
									{{$select.selected.label}}
								</ui-select-match>
								<ui-select-choices repeat="item.value as item in dictbytypelist | filter: $select.search">
									<span ng-bind-html="item.label | highlight: $select.search"></span>
								</ui-select-choices>
							</ui-select>
						</div> -->
						<div class="col-sm-2">
							
						</div>
						<div class="col-sm-2 ">
							
						</div>
						<div class="col-sm-2">
							<button type="submit" class="btn btn-info search  btn-block" ng-click="load()">立即搜索</button>
						</div>
						
					</div>

				</div>
				<br/>
				<br/>
			</div>
		</div>
	</div>
	<!-- searchArea -->

	<div class="panel panel-default">
		<div class="panel-body">
			<table class="table table-condensed table-hover table-bordered">
				<thead>
					<tr>
						<th class="col-md-5 text-center">产品</th>
						<th class="col-md-2 text-center">产品分类</th>
						<th class="col-md-1 text-center">产品状态</th>
						<!--<th class="col-md-2 text-center">排序</th>-->
						<th class="col-md-1 text-center">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="obj in objs">
						<td class="">
							产品名称：{{obj.name_inside}}<br> 产品编号：{{obj.code}}
							<br> 成本价：{{obj.cost_price}} 元 / 指导价：{{obj.guide_price}} 元 / 市场价：{{obj.market_price}} 元
						</td>
						<td class="text-center">
							<br/> {{obj.sale_category_name}}
						</td>
						<td class="text-center">
							<span ng-show="obj.sale_apply_state_name == ''"><br/></span> {{obj.state_name}}
							<br/>
							<span ng-show="obj.sale_apply_state_name != ''" ng-bind="obj.sale_apply_state_name"></span>
						</td>

						<td class="text-center">

							<a ng-click="info(obj.id)" ng-show="obj.state == '1' || obj.sale_apply_state == 'apply_sale'" class="btn btn-warning btn-xs">详情</a>

						</td>
					</tr>
				</tbody>
			</table>


			<div class="text-right">

				<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                    first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                    class="m-t-none m-b">
                </pagination>

			</div>
		</div>
	</div>


</div>